package svc

import (
	"github.com/zeromicro/go-zero/rest"
	"hrt/internal/config"
	"hrt/internal/middleware"
)

type ServiceContext struct {
	Config             config.Config
	TransparentRequest rest.Middleware
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:             c,
		TransparentRequest: middleware.NewTransparentRequestMiddleware().Handle,
	}
}
